package com.room.user.dao;

import com.room.user.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * 
 * @author brh
 * @email sunlightcs@gmail.com
 * @date 2022-03-23 16:59:36
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {
    @Select("select * from user where user_nike_name=#{userNikeName}")
    UserEntity findByName(@Param("userNikeName") String userNikeName);
    @Select("select * from user where user_tel=#{phone}")
    UserEntity findByPhone(@Param("phone") String phone);
}
